<?
$groups = $this->groups;
?>

<ul>
    <? foreach ($groups as $group): ?>
    <li><?= $group['name']?></li>
    <ul>
        <? foreach ($group['tags'] as $tag): ?>
        <li>
            <a href="/index/show/tag/<?= $tag['id']?>">
                <?= $tag['name'] ?>
            </a>
        </li>
        <? endforeach; ?>
    </ul>
    <? endforeach; ?>
</ul>